// @flow
import React, { Component } from 'react';
import '../static/css/account-common.css';
import '../static/css/add-button.css';

import { inject, observer } from 'mobx-react';
import { Icon } from 'antd';

type props = {}

export default class AddButton extends React.Component<Props> {
  props: Props;

  constructor(props) {
    super(props)
    this.state = {
      buttonText: this.props.buttonText
    }
  }

  render() {
    return (
      <div className="add-button">  
        <div>
          <div><Icon type="plus" /></div>
        </div>
        <div>{this.state.buttonText}</div>
      </div>
    );
  }
}